<template>
  <div>
    <h1>租户页面</h1>
    <input v-model="tenantName" placeholder="请输入您的姓名" />
    <button @click="sendRequest">请求签署合同</button>
  </div>
</template>

<script>
import axios from 'axios';

export default {
  data() {
    return {
      tenantName: ''
    };
  },
  methods: {
    async sendRequest() {
      try {
        const response = await axios.post('/api/tenant/request', {
          name: this.tenantName
        });
        console.log(response.data);
      } catch (error) {
        console.error('请求失败:', error);
      }
    }
  }
};
</script>

<style>
/* Add styles here */
</style>
